package com.summer.framework.system.converter;

import com.summer.framework.system.controller.dto.CategoryDTO;
import com.summer.framework.system.entity.Category;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * Description:
 *
 * @auther Ice Yang
 * Date 2025/9/26 17:45
 */
@Mapper(componentModel = "spring")
public interface CategoryConverter {

    CategoryDTO toDTO(Category category);

    Category toEntity(CategoryDTO categoryDTO);

    List<CategoryDTO> toDTOs(List<Category> categories);

    List<Category> toEntities(List<CategoryDTO> categoryDTOS);
}
